package com.sun.dao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

/**
 * @author SunRui
 * @description TODO
 * @date 2024/9/12 15:10
 */
@Repository
public class UserDao {
    @Value("${name}")
    private String name;
    @Value("${age}")
    private int age;

    public void getUser() {
        System.out.println( "name:"+name+"\nage:"+age);
    }
}
